
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>门店EDI · GitBook</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        
        
        
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="3.掌中宝.html" />
    
    
    <link rel="prev" href="1.食尚购.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                    引言
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="../html/0.html.html">
            
                <a href="../html/0.html.html">
            
                    
                    HTML
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1" data-path="../html/1.html整体结构.html">
            
                <a href="../html/1.html整体结构.html">
            
                    
                    HTML整体结构
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.2" data-path="../html/2.html代码格式.html">
            
                <a href="../html/2.html代码格式.html">
            
                    
                    HTML代码格式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.3" data-path="../html/3.html内容语义.html">
            
                <a href="../html/3.html内容语义.html">
            
                    
                    HTML内容语义
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="../css/0.css.html">
            
                <a href="../css/0.css.html">
            
                    
                    CSS
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="../css/1.css书写规范.html">
            
                <a href="../css/1.css书写规范.html">
            
                    
                    CSS书写规范
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.2" data-path="../css/2.css命名规范.html">
            
                <a href="../css/2.css命名规范.html">
            
                    
                    CSS命名规范
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="../js/0.javascript.html">
            
                <a href="../js/0.javascript.html">
            
                    
                    JavaScript
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="../js/1.javascript-es6.html">
            
                <a href="../js/1.javascript-es6.html">
            
                    
                    es6
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="../图片规范/图片规范.html">
            
                <a href="../图片规范/图片规范.html">
            
                    
                    图片规范
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="../前端研发流程/前端研发流程.html">
            
                <a href="../前端研发流程/前端研发流程.html">
            
                    
                    前端研发流程
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="../项目/0.项目.html">
            
                <a href="../项目/0.项目.html">
            
                    
                    项目
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.7.1" data-path="../项目/1.食尚购.html">
            
                <a href="../项目/1.食尚购.html">
            
                    
                    食尚购App
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.8" data-path="0.文档.html">
            
                <a href="0.文档.html">
            
                    
                    文档
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.8.1" data-path="1.食尚购.html">
            
                <a href="1.食尚购.html">
            
                    
                    食尚购App
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="1.8.2" data-path="2.门店EDI.html">
            
                <a href="2.门店EDI.html">
            
                    
                    门店EDI
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.3" data-path="3.掌中宝.html">
            
                <a href="3.掌中宝.html">
            
                    
                    掌中宝
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.4" data-path="4.食尚购小程序.html">
            
                <a href="4.食尚购小程序.html">
            
                    
                    食尚购小程序
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >门店EDI</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h3 id="1&#x6743;&#x9650;&#x529F;&#x80FD;">1.&#x6743;&#x9650;&#x529F;&#x80FD;</h3>
<p>&#x9879;&#x76EE;&#x4E2D;&#x7EDF;&#x4E00;&#x5BF9;&#x6743;&#x9650;&#x8FDB;&#x884C;&#x914D;&#x7F6E;,&#x89E3;&#x6790;,&#x540C;&#x6B65;,&#x83B7;&#x53D6;
1.configs/auth_config.js&#x5185;&#x8FDB;&#x884C;&#x6743;&#x9650;&#x914D;&#x7F6E;</p>
<pre><code>reportDamages: {
    name: &apos;&#x95E8;&#x5E97;&#x62A5;&#x635F;&#x51FA;&#x5E93;&#x5355;&apos;,
    add: &apos;101&apos;,
    del: &apos;102&apos;,
    delItem: &apos;103&apos;,
    edit: &apos;104&apos;,
    check: &apos;105&apos;,
    uncheck: &apos;106&apos;,
    // &#x4E3B;&#x8868;&#x5355;&#x636E;&#x4FE1;&#x606F;-&#x91D1;&#x989D;
    sumMoney: &apos;107&apos;,
    bom: &apos;114&apos;
},
</code></pre><p>2.&#x901A;&#x8FC7;&#x63A5;&#x53E3;&#x83B7;&#x53D6;&#x5F53;&#x524D;&#x9875;&#x9762;&#x7684;&#x6743;&#x9650;,&#x8FDB;&#x884C;&#x6743;&#x9650;&#x540C;&#x6B65;</p>
<pre><code>this.$fxApi(&apos;reportDamages.getOrderDetails&apos;)({
    params
}).then((res) =&gt; {
    this.$store.commit(&apos;SET_AUTH_LIST&apos;, {
        reportDamages: res.actions
    })
})
</code></pre><p>3.&#x6743;&#x9650;&#x7684;&#x4F7F;&#x7528;&#x5206;&#x4E3A;&#x81EA;&#x5B9A;&#x4E49;&#x6307;&#x4EE4;&#x5F0F;&#x4F7F;&#x7528; &#x548C; &#x547D;&#x4EE4;&#x5F0F;&#x4F7F;&#x7528;</p>
<p>&#x81EA;&#x5B9A;&#x4E49;&#x6307;&#x4EE4;</p>
<pre><code>&lt;w-button
    v-fx-auth:reportDamages.check
    type=&quot;check&quot;
    @click=&quot;onCheckClick&quot;
&gt;&#x5BA1;&#x6838;&lt;/w-button&gt;
</code></pre><p>&#x547D;&#x4EE4;&#x5F0F;&#x8C03;&#x7528;</p>
<pre><code>this.billAuthGetter(&apos;reportDamages&apos;)(&apos;edit&apos;)
</code></pre><h3 id="2&#x5355;&#x636E;&#x72B6;&#x6001;&#x529F;&#x80FD;">2.&#x5355;&#x636E;&#x72B6;&#x6001;&#x529F;&#x80FD;</h3>
<p>1.&#x5982;&#x4F55;&#x9ED8;&#x8BA4;&#x72B6;&#x6001;&#x4E0D;&#x7B26;&#x5408;, &#x5219;configs/state_config.js&#x5185;&#x914D;&#x7F6E;&#x72B6;&#x6001;&#x53C2;&#x6570;</p>
<pre><code>// &#x6807;&#x51C6;&#x5355;&#x636E;&#x72B6;&#x6001; unsaved:&#x65B0;&#x589E;&#x672A;&#x4FDD;&#x5B58;, unsubmit:&#x5F85;&#x63D0;&#x4EA4;, unchecked:&#x5F85;&#x5BA1;&#x6838;, checked:&#x5DF2;&#x5BA1;&#x6838;
orderState: {
    unsaved: 0,
    unsubmit: 1,
    unchecked: 2,
    checked: 3
}
</code></pre><p>2.&#x4F7F;&#x7528;api&#x6821;&#x9A8C;&#x5355;&#x636E;&#x72B6;&#x6001;</p>
<pre><code>this.$fxStateMiddleware.orderStateIs([&apos;unchecked&apos;, &apos;checked&apos;])(this.orderData.billState)
</code></pre><h3 id="3&#x6570;&#x636E;&#x4EA4;&#x4E92;&#x529F;&#x80FD;">3.&#x6570;&#x636E;&#x4EA4;&#x4E92;&#x529F;&#x80FD;</h3>
<p>1.configs/api_config.js&#x5185;&#x914D;&#x7F6E;&#x4EA4;&#x4E92;api</p>
<pre><code>// &#x5E94;&#x6536;&#x5E94;&#x4ED8;&#x5355;
accountsPayable: {
    // &#x83B7;&#x53D6;&#x5355;&#x636E;&#x5217;&#x8868;
    getOrderList: post({ url: &apos;/30030&apos; }),
    // &#x65B0;&#x589E;&#x5355;&#x636E;
    addOrder: post({ url: &apos;/30031&apos; }),
    // &#x5220;&#x9664;&#x5355;&#x636E;
    deleteOrder: post({ url: &apos;/30032&apos; }),
    // &#x83B7;&#x53D6;&#x6536;&#x6B3E;&#x65B9;&#x673A;&#x6784;
    getReceiveOrgan: post({ url: &apos;/30033&apos; }),
    // &#x4FDD;&#x5B58;&#x5355;&#x636E;&#x8BE6;&#x60C5;
    saveDetails: post({ url: &apos;/30034&apos; }),
    // &#x83B7;&#x53D6;&#x5BFC;&#x5165;&#x5355;&#x636E;&#x5217;&#x8868;
    getImportOrderList: post({ url: &apos;/30035&apos; }),
    // &#x5BFC;&#x5165;&#x5355;&#x636E;
    import: post({ url: &apos;/30036&apos; }),
    // &#x63D0;&#x4EA4;&#x5355;&#x636E;
    submit: post({ url: &apos;/30037&apos; }),
    // &#x9000;&#x56DE;&#x5355;&#x636E;
    returned: post({ url: &apos;/30038&apos; }),
    // &#x5BA1;&#x6838;&#x5355;&#x636E;
    check: post({ url: &apos;/30039&apos; }),
    // &#x53CD;&#x5BA1;&#x5355;&#x636E;
    uncheck: post({ url: &apos;/30040&apos; }),
    // &#x83B7;&#x53D6;&#x5355;&#x636E;&#x8BE6;&#x60C5;
    getOrderDetails: post({ url: &apos;/30041&apos; }),
    // &#x83B7;&#x53D6;&#x4E1A;&#x52A1;&#x7C7B;&#x578B;
    getBusType: cache(post({ url: &apos;/30042&apos; })),
    // &#x83B7;&#x53D6;&#x4ED8;&#x6B3E;&#x65B9;&#x96C6;&#x56E2;
    getPayOrgan: post({ url: &apos;/30043&apos; }),
    // &#x83B7;&#x53D6;&#x9ED8;&#x8BA4;&#x7684;&#x4ED8;&#x6B3E;&#x96C6;&#x56E2; &#x548C;&#x6536;&#x6B3E;&#x65B9;
    getDefaultPayReceiveOrgan: post({ url: &apos;/30044&apos; })
},
</code></pre><p>2.&#x8C03;&#x7528;api</p>
<pre><code>// &#x4E0D;&#x4F20;&#x53C2;
this.$fxApi(&apos;accountsPayable.getBusType&apos;).then((res) =&gt; {
})
// &#x4F20;&#x53C2;
this.$fxApi(&apos;accountsPayable.getOrderDetails&apos;)({
    params
}).then((res) =&gt; {
})
</code></pre><h3 id="4&#x6570;&#x636E;&#x6821;&#x9A8C;&#x529F;&#x80FD;">4.&#x6570;&#x636E;&#x6821;&#x9A8C;&#x529F;&#x80FD;</h3>
<pre><code>// &#x521B;&#x5EFA;&#x6821;&#x9A8C;&#x5B9E;&#x4F8B;
fxDataVerification: this.$fxUtils.fxDataVerification()
// &#x91CD;&#x7F6E;&#x6570;&#x636E;
this.fxDataVerification.resetData(orderData)
// &#x6821;&#x9A8C;&#x6570;&#x636E;
this.fxDataVerification.checkData(this.orderData)
</code></pre><h3 id="5&#x81EA;&#x5B9A;&#x4E49;&#x6307;&#x4EE4;-&#x81EA;&#x52A8;&#x5224;&#x65AD;&#x6D4F;&#x89C8;&#x5668;&#x540E;&#x9000;-&#x5173;&#x95ED;&#x5BF9;&#x5E94;&#x7EC4;&#x4EF6;">5.&#x81EA;&#x5B9A;&#x4E49;&#x6307;&#x4EE4;, &#x81EA;&#x52A8;&#x5224;&#x65AD;&#x6D4F;&#x89C8;&#x5668;&#x540E;&#x9000;, &#x5173;&#x95ED;&#x5BF9;&#x5E94;&#x7EC4;&#x4EF6;</h3>
<pre><code>&lt;popupListComp
    v-model=&quot;payOrganListVisiable&quot;
    v-fx-history-back=&quot;payOrganListVisiable&quot;
    title=&quot;&#x9009;&#x62E9;&#x4ED8;&#x6B3E;&#x65B9;&#x96C6;&#x56E2;&quot;
    apiName=&quot;accountsPayable.getPayOrgan&quot;
    @on-select=&quot;onPayOrganListSelect&quot;
&gt;&lt;/popupListComp&gt;
</code></pre><h3 id="8&#x4E1A;&#x52A1;&#x903B;&#x8F91;&#x901A;&#x7528;">8.&#x4E1A;&#x52A1;&#x903B;&#x8F91;&#x901A;&#x7528;</h3>
<p>&#x5BF9;&#x5E94;&#x901A;&#x7528;&#x903B;&#x8F91;,&#x63D0;&#x4EA4;,&#x9000;&#x56DE;,&#x5BA1;&#x6838;&#x53CD;&#x5BA1;&#x7B49;,&#x4E3A;&#x4E86;&#x4FDD;&#x8BC1;&#x903B;&#x8F91;&#x524D;&#x540E;&#x4E00;&#x81F4;, &#x8C03;&#x7528;&#x901A;&#x7528;&#x903B;&#x8F91;&#x51FD;&#x6570;</p>
<pre><code>onCheckClick () {
    this.$fxCommon.orderListFrontFunc(&apos;check&apos;)
        .then(this.verifyOrderData)
        .then(this.checkHandler)
        .then(this.$fxCommon.orderSuccess(&apos;check&apos;))
        .then(this.onRefreshDetails)
},
</code></pre>
                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="1.食尚购.html" class="navigation navigation-prev " aria-label="Previous page: 食尚购App">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="3.掌中宝.html" class="navigation navigation-next " aria-label="Next page: 掌中宝">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"门店EDI","level":"1.8.2","depth":2,"next":{"title":"掌中宝","level":"1.8.3","depth":2,"path":"文档/3.掌中宝.md","ref":"文档/3.掌中宝.md","articles":[]},"previous":{"title":"食尚购App","level":"1.8.1","depth":2,"path":"文档/1.食尚购.md","ref":"文档/1.食尚购.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":[],"pluginsConfig":{"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"文档/2.门店EDI.md","mtime":"2020-07-02T00:07:51.337Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2020-07-02T00:51:07.028Z"},"basePath":"..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

